import http from './interface'
// 查询用户收货地址
// 127.0.0.1:8080/aliMini/system/aliUserAddress/queryUserAddressList
export const queryUserAddressList = (data)=>{
	return http.request({
		url:`aliMini/system/aliUserAddress/queryUserAddressList`,
		method:'get'
	})
}
// 127.0.0.1:8080/aliMini/system/aliUserAddress/queryAddress
// 获取省市区数据
export const queryAddress = (data)=>{
	return http.request({
		url:`aliMini/system/aliUserAddress/queryAddress`,
		method:'get'
	})
}
// 127.0.0.1:8080/aliMini/system/aliUserAddress/addUserAddress
// 保存收货地址
export const addUserAddress = (data)=>{
	return http.request({
		url:`aliMini/system/aliUserAddress/addUserAddress`,
		method:'post',
		data:data,
	})
}
// 127.0.0.1:8080/aliMini/system/aliUserAddress/queryUserAddressById/1
export const queryUserAddressById = (id)=>{
	return http.request({
		url:`aliMini/system/aliUserAddress/queryUserAddressById/${id}`,
		method:'get'
	})
}
// 127.0.0.1:8080/aliMini/system/aliUserAddress/editUserAddress
export const editUserAddress = (data)=>{
	return http.request({
		url:`aliMini/system/aliUserAddress/editUserAddress`,
		method:'post',
		data:data,
	})
}
// 127.0.0.1:8080/aliMini/system/aliUserAddress/deleteUserAddress/1
export const deleteUserAddress = (id)=>{
	return http.request({
		url:`aliMini/system/aliUserAddress/deleteUserAddress`,
		method:'post',
		data:{
			id:id
		}
	})
}